package adapter.impl;

import adapter.NewInterface;
import adapter.OldInterface;

/**
 * @author zhangxi
 * @date 2021/10/8
 */
public class AdapterImpl implements NewInterface {

    private OldInterface oldInterface;

    public AdapterImpl() {
    }

    public AdapterImpl(OldInterface oldInterface) {
        this.oldInterface = oldInterface;
    }

    public void newExcute() {
        oldInterface.oldExcute();
    }
}
